QT += gui network concurrent multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets core

TARGET = service

TEMPLATE = lib

DEFINES += SERVICE_LIBRARY

CONFIG += c++17

QMAKE_CXXFLAGS += -Wno-strict-aliasing -Wno-unused-variable

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ConfigService.cpp \
    PlanService.cpp \
    QuoteService.cpp \
    ScreenshotService.cpp \
    SoundService.cpp \
    TimerService.cpp \
    service.cpp

HEADERS += \
    ConfigService.h \
    PlanService.h \
    QuoteService.h \
    ScreenshotService.h \
    SoundService.h \
    TimerService.h \
    service_global.h \
    service.h

RESOURCES += \
    resource.qrc

# 添加module依赖
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../module/release/ -lmodule
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../module/debug/ -lmodule
else:unix: LIBS += -L$$OUT_PWD/../module/ -lmodule

INCLUDEPATH += $$PWD/../module
DEPENDPATH += $$PWD/../module

# 添加log依赖
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../log/release/ -llog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../log/debug/ -llog
else:unix: LIBS += -L$$OUT_PWD/../log/ -llog

INCLUDEPATH += $$PWD/../log
DEPENDPATH += $$PWD/../log

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target
